#include "guibasenode.h"
#include "../maindrawscene.h"

#include <algorithm> // for std::sort

GuiBaseNode::GuiBaseNode()
    : mId(-1),
    mGuiNodeType(GuiNodeType::GUINODETYPE_NULL)
{

}

GuiBaseNode::GuiBaseNode(int id,wxString nodename)
    : mId(id),
    mNodeName(nodename),
    mGuiNodeType(GuiNodeType::GUINODETYPE_NULL)
{

}

GuiBaseNode::~GuiBaseNode()
{

}

/// 设置结点显示颜色
void GuiBaseNode::setColor(wxColour normalcol,wxColour overcol,wxColour clickcol)
{
    mColNormal = normalcol;
    mColOver = overcol;
    mColClick = clickcol;
}
